package com.project.erp.model.facsupplier;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.project.erp.model.IdEntity;

/**
 * 工厂供应商表
 * 
 * 使用JPA annotation定义ORM关系. 使用Hibernate annotation定义JPA 1.0未覆盖的部分.
 * 
 * @author lijiaguo
 * @date 2013-10-19 00:40
 */
@Entity
// 表名与类名不相同时重新定义表名.
@Table(name = "TBL_FAC_SUPPLIER")
// 默认的缓存策略.
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class FacSupplier extends IdEntity {

	private static final long serialVersionUID = -962835974089295645L;

	private String supplierNameEn;//供方（乙方）,英文
	private String supplierNameZn;//供方（乙方）,中文
	private String address;//地址
	private String linkMan;//联系人
	private String phone;//固话
	private String mobile;//电话
	private String createUser;//创建用户
	private Date createDate;//创建时间
	private String updateUser;//更新用户
	private Date updateDate;//更新时间

	public String getSupplierNameEn() {
		return supplierNameEn;
	}

	public void setSupplierNameEn(String supplierNameEn) {
		this.supplierNameEn = supplierNameEn;
	}

	public String getSupplierNameZn() {
		return supplierNameZn;
	}

	public void setSupplierNameZn(String supplierNameZn) {
		this.supplierNameZn = supplierNameZn;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLinkMan() {
		return linkMan;
	}

	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

}
